package cn.edu.scau.cmi.yejiancong.simplefactory;

public class insuranceFactory {
	public static insurance	insuranceType(int insurance) {
		insurance insurances =null;
		if(insurance==0) 
		insurances=new bodyInjur();
		else if(insurance==1)
		insurances=new carBroke();
		else if(insurance==2)
		insurances=new peopleDamge();
		else 
			insurances=new otherCase();
		
			return insurances;
		
	}

}
